From 0f15e0005f683dd709ed6b999711799457ed2c5e Mon Sep 17 00:00:00 2001 From: Yury Usishchev Date: Tue, 23 Sep 2014 16:04:57 +0400 Subject: [PATCH] Remove unused functions Change-Id: Ie25ac47e434da0ee838fc408bf473881c74a9fcc Signed-off-by: Yury Usishchev --- adaptors/common/adaptor-impl.cpp | 8 -------- adaptors/wayland/event-handler-wl.cpp | 29 ----------------------------- adaptors/x11/event-handler-x.cpp | 29 ----------------------------- 3 files changed, 66 deletions(-) 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 -- 2.7.4