[llvm] r304233 - [Object] Remove unused field + constructor.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 12:37:03 PDT 2017


Author: d0k
Date: Tue May 30 14:37:02 2017
New Revision: 304233

URL: http://llvm.org/viewvc/llvm-project?rev=304233&view=rev
Log:
[Object] Remove unused field + constructor.

Modified:
    llvm/trunk/include/llvm/Object/WindowsResource.h
    llvm/trunk/lib/Object/WindowsResource.cpp

Modified: llvm/trunk/include/llvm/Object/WindowsResource.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/WindowsResource.h?rev=304233&r1=304232&r2=304233&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/WindowsResource.h (original)
+++ llvm/trunk/include/llvm/Object/WindowsResource.h Tue May 30 14:37:02 2017
@@ -116,7 +116,6 @@ private:
   class TreeNode {
   public:
     TreeNode() = default;
-    explicit TreeNode(uint32_t ID);
     explicit TreeNode(ArrayRef<UTF16> Ref);
     void addEntry(const ResourceEntryRef &Entry);
     void print(ScopedPrinter &Writer, StringRef Name) const;
@@ -127,7 +126,6 @@ private:
     TreeNode &addLanguageNode(const ResourceEntryRef &Entry);
     TreeNode &addChild(uint32_t ID);
     TreeNode &addChild(ArrayRef<UTF16> NameRef);
-    uint16_t ID;
     std::vector<UTF16> Name;
     std::map<uint32_t, std::unique_ptr<TreeNode>> IDChildren;
     std::map<std::string, std::unique_ptr<TreeNode>> StringChildren;

Modified: llvm/trunk/lib/Object/WindowsResource.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WindowsResource.cpp?rev=304233&r1=304232&r2=304233&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WindowsResource.cpp (original)
+++ llvm/trunk/lib/Object/WindowsResource.cpp Tue May 30 14:37:02 2017
@@ -145,8 +145,6 @@ void WindowsResourceParser::TreeNode::ad
   NameNode.addLanguageNode(Entry);
 }
 
-WindowsResourceParser::TreeNode::TreeNode(uint32_t ID) : ID(ID) {}
-
 WindowsResourceParser::TreeNode::TreeNode(ArrayRef<UTF16> NameRef)
     : Name(NameRef) {}
 




More information about the llvm-commits mailing list