[lldb][NFC] Remove redundant deleted constructors in HostInfoBase subclasses
authorRaphael Isemann <teemperor@gmail.com>
Mon, 21 Jun 2021 11:19:15 +0000 (13:19 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 21 Jun 2021 11:33:40 +0000 (13:33 +0200)
HostInfoBase has a deleted dtor/ctor so there is no need to do the same for
all the classes inheriting from it.

Reviewed By: DavidSpickett, JDevlieghere

Differential Revision: https://reviews.llvm.org/D104221

lldb/include/lldb/Host/linux/HostInfoLinux.h
lldb/include/lldb/Host/macosx/HostInfoMacOSX.h
lldb/include/lldb/Host/windows/HostInfoWindows.h

index 4a7bb6c..3220046 100644 (file)
@@ -21,11 +21,6 @@ namespace lldb_private {
 class HostInfoLinux : public HostInfoPosix {
   friend class HostInfoBase;
 
-private:
-  // Static class, unconstructable.
-  HostInfoLinux();
-  ~HostInfoLinux();
-
 public:
   static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
   static void Terminate();
index ee9f12a..4623932 100644 (file)
@@ -21,11 +21,6 @@ class ArchSpec;
 class HostInfoMacOSX : public HostInfoPosix {
   friend class HostInfoBase;
 
-private:
-  // Static class, unconstructable.
-  HostInfoMacOSX() = delete;
-  ~HostInfoMacOSX() = delete;
-
 public:
   static llvm::VersionTuple GetOSVersion();
   static llvm::VersionTuple GetMacCatalystVersion();
index 400a3f4..f01113e 100644 (file)
@@ -19,11 +19,6 @@ class UserIDResolver;
 class HostInfoWindows : public HostInfoBase {
   friend class HostInfoBase;
 
-private:
-  // Static class, unconstructable.
-  HostInfoWindows();
-  ~HostInfoWindows();
-
 public:
   static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
   static void Terminate();