зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1373525 - ipc: Remove unused classes EmptyStrings and InitUDPSocketParentCallback. r=dvander
ipc/chromium/src/base/string_util.cc:35:3 [-Wunused-member-function] unused member function 'EmptyStrings' ipc/glue/BackgroundParentImpl.cpp:405:3: warning: unused member function 'InitUDPSocketParentCallback' [-Wunused-member-function] The class InitUDPSocketParentCallback was added in bug 1109338. It wasn't used then and it isn't used now. https://hg.mozilla.org/mozilla-central/rev/eefcbe8e6a0c MozReview-Commit-ID: BfDbQ5dfgo8 --HG-- extra : source : 7411baa0c64638b9da7de813c578fe9505625690 extra : intermediate-source : 975014d05919be2c9c6a0672c1ae94da86ccb29b
This commit is contained in:
Родитель
a3d1f2d1dd
Коммит
5cac01578b
|
@ -28,16 +28,6 @@
|
|||
|
||||
namespace {
|
||||
|
||||
// Force the singleton used by Empty[W]String[16] to be a unique type. This
|
||||
// prevents other code that might accidentally use Singleton<string> from
|
||||
// getting our internal one.
|
||||
struct EmptyStrings {
|
||||
EmptyStrings() {}
|
||||
const std::string s;
|
||||
const std::wstring ws;
|
||||
const string16 s16;
|
||||
};
|
||||
|
||||
// Hack to convert any char-like type to its unsigned counterpart.
|
||||
// For example, it will convert char, signed char and unsigned char to unsigned
|
||||
// char.
|
||||
|
|
|
@ -397,41 +397,6 @@ BackgroundParentImpl::DeallocPCamerasParent(camera::PCamerasParent *aActor)
|
|||
return true;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
class InitUDPSocketParentCallback final : public Runnable
|
||||
{
|
||||
public:
|
||||
InitUDPSocketParentCallback(UDPSocketParent* aActor,
|
||||
const nsACString& aFilter)
|
||||
: mActor(aActor)
|
||||
, mFilter(aFilter)
|
||||
{
|
||||
AssertIsInMainProcess();
|
||||
AssertIsOnBackgroundThread();
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
Run() override
|
||||
{
|
||||
AssertIsInMainProcess();
|
||||
|
||||
IPC::Principal principal;
|
||||
if (!mActor->Init(principal, mFilter)) {
|
||||
MOZ_CRASH("UDPSocketCallback - failed init");
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~InitUDPSocketParentCallback() override = default;
|
||||
|
||||
RefPtr<UDPSocketParent> mActor;
|
||||
nsCString mFilter;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
auto
|
||||
BackgroundParentImpl::AllocPUDPSocketParent(const OptionalPrincipalInfo& /* unused */,
|
||||
const nsCString& /* unused */)
|
||||
|
|
Загрузка…
Ссылка в новой задаче