Skip to content

Commit eb859b7

Browse files
committed
Remove NE::LocString because it is not used.
1 parent ef43399 commit eb859b7

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

Sources/NodeEngine/NE_String.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ namespace NE
44
{
55

66
SERIALIZATION_INFO (String, 1);
7-
SERIALIZATION_INFO (LocString, 1);
87

98
String::String () :
109
String (std::wstring ())
@@ -69,38 +68,4 @@ Stream::Status String::Write (OutputStream& outputStream) const
6968
return outputStream.GetStatus ();
7069
}
7170

72-
LocString::LocString () :
73-
LocString (std::wstring ())
74-
{
75-
}
76-
77-
LocString::LocString (const std::wstring& strValue) :
78-
strValue (strValue)
79-
{
80-
}
81-
82-
std::wstring LocString::GetLocalized () const
83-
{
84-
return LocalizeString (strValue);
85-
}
86-
87-
std::wstring LocString::GetLocalized (const Dictionary& dictionary) const
88-
{
89-
return LocalizeString (dictionary, strValue);
90-
}
91-
92-
Stream::Status LocString::Read (InputStream& inputStream)
93-
{
94-
ObjectHeader header (inputStream);
95-
inputStream.Read (strValue);
96-
return inputStream.GetStatus ();
97-
}
98-
99-
Stream::Status LocString::Write (OutputStream& outputStream) const
100-
{
101-
ObjectHeader header (outputStream, serializationInfo);
102-
outputStream.Write (strValue);
103-
return outputStream.GetStatus ();
104-
}
105-
10671
}

Sources/NodeEngine/NE_String.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,6 @@ class String
3535
Localization localization;
3636
};
3737

38-
class LocString
39-
{
40-
SERIALIZABLE;
41-
42-
public:
43-
explicit LocString ();
44-
explicit LocString (const std::wstring& strValue);
45-
46-
std::wstring GetLocalized () const;
47-
std::wstring GetLocalized (const Dictionary& dictionary) const;
48-
49-
Stream::Status Read (InputStream& inputStream);
50-
Stream::Status Write (OutputStream& outputStream) const;
51-
52-
private:
53-
std::wstring strValue;
54-
};
55-
5638
}
5739

5840
#endif

0 commit comments

Comments
 (0)