diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-23 12:26:59 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-23 12:26:59 +0300 |
commit | ec08b5e1ecc3d8bb443740634e8d07033026eb79 (patch) | |
tree | 67bb3f88fae3c165d5f342fdb2d04c34ef837f96 /plugins | |
parent | 56cc5e55a2bc7e3d57c61c6b8f361c6683607834 (diff) |
unused function removed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 9 | ||||
-rw-r--r-- | plugins/NewStory/src/history_array.h | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
3 files changed, 3 insertions, 9 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index b7244c283d..6a88558640 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -191,7 +191,8 @@ ItemData* ItemData::checkPrevGC(ItemData *pPrev) int ItemData::calcHeight(int top, int width, POINT *pPos)
{
- checkCreate();
+ if (m_doc == nullptr)
+ setText();
SIZE sz;
sz.cx = width - 2;
@@ -227,12 +228,6 @@ int ItemData::calcHeight(int top, int width, POINT *pPos) return savedHeight;
}
-void ItemData::checkCreate()
-{
- if (m_doc == nullptr)
- setText();
-}
-
bool ItemData::fetch(void)
{
// if this event is virtual (for example, in group chats), don't try to laod it
diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h index a03e8b4066..b94a38888e 100644 --- a/plugins/NewStory/src/history_array.h +++ b/plugins/NewStory/src/history_array.h @@ -34,7 +34,6 @@ struct ItemData ItemData* checkNext(ItemData *pPrev);
ItemData* checkPrev(ItemData *pPrev);
ItemData* checkPrevGC(ItemData *pPrev);
- void checkCreate();
int calcHeight(int top, int width, POINT *pPos = nullptr);
bool completed() const { return m_bOfflineDownloaded == 100; }
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 3ccad39066..6cbc484733 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -442,7 +442,7 @@ void NewstoryListData::EndEditItem(bool bAccept) pItem->m_doc = 0;
pItem->savedHeight = -1;
- pItem->checkCreate();
+ pItem->setText();
}
}
|