summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-14 22:50:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-15 09:27:57 +0200
commit71b2bf62d625b67696f612c30e214e71f36a5471 (patch)
tree194fb0f6aaba52cb5c9593cd4ad249ea1a800a67 /sdext
parent2f7492ad67222759006ad4f7e1fdd86147278729 (diff)
Remove unnecessary TK_Last
Change-Id: Ia5095646f01a76258d69df866e3c803f8691915b
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/pppoptimizertoken.cxx6
-rw-r--r--sdext/source/minimizer/pppoptimizertoken.hxx1
2 files changed, 1 insertions, 6 deletions
diff --git a/sdext/source/minimizer/pppoptimizertoken.cxx b/sdext/source/minimizer/pppoptimizertoken.cxx
index f4d8b40bdc1d..874206cffe51 100644
--- a/sdext/source/minimizer/pppoptimizertoken.cxx
+++ b/sdext/source/minimizer/pppoptimizertoken.cxx
@@ -278,7 +278,6 @@ static const TokenTable pTokenTableArray[] =
{ "STR_CREATING_OLE_REPLACEMENTS",STR_CREATING_OLE_REPLACEMENTS },
{ "STR_FileSizeSeparator", STR_FILESIZESEPARATOR },
- { "Last", TK_Last },
{ "NotFound", TK_NotFound }
};
@@ -312,10 +311,7 @@ PPPOptimizerTokenEnum TKGet( const OUString& rToken )
OUString TKGet( const PPPOptimizerTokenEnum eToken )
{
- sal_uInt32 i = eToken >= TK_Last
- ? (sal_uInt32)TK_NotFound
- : (sal_uInt32)eToken;
- return OUString::createFromAscii( pTokenTableArray[ i ].pS );
+ return OUString::createFromAscii( pTokenTableArray[ eToken ].pS );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/source/minimizer/pppoptimizertoken.hxx b/sdext/source/minimizer/pppoptimizertoken.hxx
index 6d97989a1967..a3fdb0aef349 100644
--- a/sdext/source/minimizer/pppoptimizertoken.hxx
+++ b/sdext/source/minimizer/pppoptimizertoken.hxx
@@ -262,7 +262,6 @@ enum PPPOptimizerTokenEnum
STR_CREATING_OLE_REPLACEMENTS,
STR_FILESIZESEPARATOR,
- TK_Last,
TK_NotFound
};