From: Yury Usishchev Date: Tue, 23 Sep 2014 12:04:57 +0000 (+0400) Subject: Remove unused functions X-Git-Tag: accepted/tizen/common/20140925.172111~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F28013%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Remove unused functions Change-Id: Ie25ac47e434da0ee838fc408bf473881c74a9fcc Signed-off-by: Yury Usishchev --- diff --git a/adaptors/common/adaptor-impl.cpp b/adaptors/common/adaptor-impl.cpp index 2314ae5..860e581 100644 --- a/adaptors/common/adaptor-impl.cpp +++ b/adaptors/common/adaptor-impl.cpp @@ -92,14 +92,6 @@ bool GetIntegerEnvironmentVariable( const char* variable, int& intValue ) return true; } -bool GetBooleanEnvironmentVariable( const char* variable, bool& boolValue ) -{ - const char* variableParameter = std::getenv(variable); - - boolValue = variableParameter ? true : false; - return boolValue; -} - bool GetFloatEnvironmentVariable( const char* variable, float& floatValue ) { const char* variableParameter = std::getenv(variable); diff --git a/adaptors/wayland/event-handler-wl.cpp b/adaptors/wayland/event-handler-wl.cpp index 7b191e6..b60efea 100644 --- a/adaptors/wayland/event-handler-wl.cpp +++ b/adaptors/wayland/event-handler-wl.cpp @@ -74,35 +74,6 @@ Integration::Log::Filter* gSelectionEventLogFilter = Integration::Log::Filter::N namespace { -// Currently this code is internal to dali/dali/internal/event/text/utf8.h but should be made Public and used from there instead. -size_t Utf8SequenceLength(const unsigned char leadByte) -{ - size_t length = 0; - - if ((leadByte & 0x80) == 0 ) //ASCII character (lead bit zero) - { - length = 1; - } - else if (( leadByte & 0xe0 ) == 0xc0 ) //110x xxxx - { - length = 2; - } - else if (( leadByte & 0xf0 ) == 0xe0 ) //1110 xxxx - { - length = 3; - } - else if (( leadByte & 0xf8 ) == 0xf0 ) //1111 0xxx - { - length = 4; - } - else - { - DALI_LOG_WARNING("Unrecognized lead byte %c\n", leadByte); - } - - return length; -} - const unsigned int PRIMARY_TOUCH_BUTTON_ID( 1 ); const unsigned int BYTES_PER_CHARACTER_FOR_ATTRIBUTES = 3; diff --git a/adaptors/x11/event-handler-x.cpp b/adaptors/x11/event-handler-x.cpp index 6919aef..f702cea 100644 --- a/adaptors/x11/event-handler-x.cpp +++ b/adaptors/x11/event-handler-x.cpp @@ -79,35 +79,6 @@ namespace const char * DALI_VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME = "db/setting/accessibility/font_name"; // It will be update at vconf-key.h and replaced. #endif // DALI_PROFILE_UBUNTU -// Currently this code is internal to dali/dali/internal/event/text/utf8.h but should be made Public and used from there instead. -size_t Utf8SequenceLength(const unsigned char leadByte) -{ - size_t length = 0; - - if ((leadByte & 0x80) == 0 ) //ASCII character (lead bit zero) - { - length = 1; - } - else if (( leadByte & 0xe0 ) == 0xc0 ) //110x xxxx - { - length = 2; - } - else if (( leadByte & 0xf0 ) == 0xe0 ) //1110 xxxx - { - length = 3; - } - else if (( leadByte & 0xf8 ) == 0xf0 ) //1111 0xxx - { - length = 4; - } - else - { - DALI_LOG_WARNING("Unrecognized lead byte %c\n", leadByte); - } - - return length; -} - const unsigned int PRIMARY_TOUCH_BUTTON_ID( 1 ); #ifndef DALI_PROFILE_UBUNTU