[dasher: 3/27] GC DasherInterfaceBase::UnsetBuffer / gtk_dasher_control_unset_buffer
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 3/27] GC DasherInterfaceBase::UnsetBuffer / gtk_dasher_control_unset_buffer
- Date: Wed, 18 Aug 2010 15:09:56 +0000 (UTC)
commit 34a8992463c5c47c557788c6e30370f8992377c4
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date: Wed Aug 4 16:57:44 2010 +0100
GC DasherInterfaceBase::UnsetBuffer / gtk_dasher_control_unset_buffer
Src/DasherCore/DasherInterfaceBase.cpp | 8 --------
Src/DasherCore/DasherInterfaceBase.h | 2 --
Src/Gtk2/GtkDasherControl.cpp | 6 ------
Src/Gtk2/GtkDasherControl.h | 1 -
4 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/Src/DasherCore/DasherInterfaceBase.cpp b/Src/DasherCore/DasherInterfaceBase.cpp
index facb2b9..2626e2e 100644
--- a/Src/DasherCore/DasherInterfaceBase.cpp
+++ b/Src/DasherCore/DasherInterfaceBase.cpp
@@ -1135,14 +1135,6 @@ void CDasherInterfaceBase::SetBuffer(int iOffset) {
CreateModel(iOffset);
}
-void CDasherInterfaceBase::UnsetBuffer() {
- // TODO: Write training file?
- if(m_pDasherModel)
- delete m_pDasherModel;
-
- m_pDasherModel = 0;
-}
-
void CDasherInterfaceBase::SetOffset(int iOffset) {
if(m_pDasherModel)
m_pDasherModel->SetOffset(iOffset, m_pNCManager->GetAlphabetManager(), m_pDasherView, false);
diff --git a/Src/DasherCore/DasherInterfaceBase.h b/Src/DasherCore/DasherInterfaceBase.h
index d03c274..cc94d88 100644
--- a/Src/DasherCore/DasherInterfaceBase.h
+++ b/Src/DasherCore/DasherInterfaceBase.h
@@ -288,8 +288,6 @@ public:
void SetBuffer(int iOffset);
- void UnsetBuffer();
-
void SetOffset(int iOffset);
/// @name Status reporting
diff --git a/Src/Gtk2/GtkDasherControl.cpp b/Src/Gtk2/GtkDasherControl.cpp
index cc7ed22..e2ea47c 100644
--- a/Src/Gtk2/GtkDasherControl.cpp
+++ b/Src/Gtk2/GtkDasherControl.cpp
@@ -210,12 +210,6 @@ gtk_dasher_control_set_buffer(GtkDasherControl *pControl, int iOffset) {
}
void
-gtk_dasher_control_unset_buffer(GtkDasherControl *pControl) {
- GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->UnsetBuffer();
-}
-
-void
gtk_dasher_control_set_offset(GtkDasherControl *pControl, int iOffset) {
GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
pPrivate->pControl->SetOffset(iOffset);
diff --git a/Src/Gtk2/GtkDasherControl.h b/Src/Gtk2/GtkDasherControl.h
index 63a7910..1ff3ab1 100644
--- a/Src/Gtk2/GtkDasherControl.h
+++ b/Src/Gtk2/GtkDasherControl.h
@@ -78,7 +78,6 @@ void gtk_dasher_control_set_context(GtkDasherControl *pControl, const gchar *szC
//void gtk_dasher_control_invalidate_context(GtkDasherControl *pControl, bool bForceStart);
void gtk_dasher_control_set_buffer(GtkDasherControl *pControl, int iOffset);
void gtk_dasher_control_set_offset(GtkDasherControl *pControl, int iOffset);
-void gtk_dasher_control_unset_buffer(GtkDasherControl *pControl);
void gtk_dasher_control_external_key_down(GtkDasherControl *pControl, int iKeyVal);
void gtk_dasher_control_external_key_up(GtkDasherControl *pControl, int iKeyVal);
gboolean gtk_dasher_control_get_module_settings(GtkDasherControl * pControl, const gchar *szModule, SModuleSettings **pSettings, gint *iCount);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]