From: Jihoon Kim Date: Fri, 2 Jun 2017 00:59:17 +0000 (+0000) Subject: Revert "Add commit_content API" X-Git-Tag: submit/tizen_3.0/20170601.022632~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a07d7fe9d7a2a4e303e18220e985cd4583e20ceb;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Revert "Add commit_content API" This reverts commit 6dfb01bc22a4d3110bde9a7f18af7e2c10d43534. Change-Id: Ifb7d678a4ce3719f16b9a3bab86a29cb0090dbaa --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index deb6511..f343346 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -1127,13 +1127,6 @@ void CSCLConnectionISF::request_ise_hide() } } -void CSCLConnectionISF::commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types) -{ - if (m_initialized) { - m_helper_agent.commit_content(content, description, mime_types); - } -} - extern "C" { EXAPI void scim_module_init(void) { diff --git a/src/sclconnection-isf.h b/src/sclconnection-isf.h index 84b226d..b0621ab 100644 --- a/src/sclconnection-isf.h +++ b/src/sclconnection-isf.h @@ -87,7 +87,6 @@ public: sclint get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor); void get_selection_text(sclchar **text); void request_ise_hide(); - void commit_content(const char *content, const char *description, const char *mime_types); private: sclboolean m_initialized; diff --git a/src/sclconnection.cpp b/src/sclconnection.cpp index 23ebc2b..7694114 100644 --- a/src/sclconnection.cpp +++ b/src/sclconnection.cpp @@ -358,10 +358,3 @@ void CSCLConnection::request_ise_hide() m_impl->request_ise_hide(); } } - -void CSCLConnection::commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types) -{ - if (m_impl) { - m_impl->commit_content(content, description, mime_types); - } -} diff --git a/src/sclconnection.h b/src/sclconnection.h index e2e4929..302583b 100644 --- a/src/sclconnection.h +++ b/src/sclconnection.h @@ -87,7 +87,6 @@ public: virtual sclint get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor); virtual void get_selection_text(sclchar **text); virtual void request_ise_hide(); - virtual void commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types); protected: std::string m_backend_identifier; diff --git a/src/sclcore.cpp b/src/sclcore.cpp index c8abe06..c543dcd 100644 --- a/src/sclcore.cpp +++ b/src/sclcore.cpp @@ -359,10 +359,3 @@ void CSCLCore::request_ise_hide() const m_impl->request_ise_hide(); } } - -void CSCLCore::commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types) -{ - if (m_impl) { - m_impl->commit_content(content, description, mime_types); - } -} diff --git a/src/sclcore.h b/src/sclcore.h index 719f08c..383c1f5 100644 --- a/src/sclcore.h +++ b/src/sclcore.h @@ -377,14 +377,6 @@ public: */ void request_ise_hide() const; - /** - * @brief Commit a content URI to its connected editor. - * - * @param[in] content a content URL to be sent. - * @param[in] description a content description. - * @param[in] mime_types a MIME type string. - */ - void commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types); private: CSCLCoreImpl *m_impl; }; diff --git a/src/sclcoreimpl.cpp b/src/sclcoreimpl.cpp index 915cb1e..468078e 100644 --- a/src/sclcoreimpl.cpp +++ b/src/sclcoreimpl.cpp @@ -373,8 +373,3 @@ void CSCLCoreImpl::request_ise_hide() { m_connection.request_ise_hide(); } - -void CSCLCoreImpl::commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types) -{ - m_connection.commit_content(content, description, mime_types); -} diff --git a/src/sclcoreimpl.h b/src/sclcoreimpl.h index af7f7f0..6145699 100644 --- a/src/sclcoreimpl.h +++ b/src/sclcoreimpl.h @@ -106,7 +106,6 @@ public: void get_selection_text(sclchar **text); void request_ise_hide(); - void commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types); private: ISCLCoreEventCallback *m_event_callback;