Skip to content

Commit

Permalink
Remove defunct exportAreaImage() (#4591)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kebap committed Jan 8, 2021
1 parent 48f9727 commit d84f0b5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
11 changes: 0 additions & 11 deletions src/T2DMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4448,12 +4448,6 @@ bool T2DMap::getCenterSelection()
}
}

void T2DMap::exportAreaImage(int id)
{
Q_UNUSED(id)
paintMap();
}

void T2DMap::wheelEvent(QWheelEvent* e)
{
// If the mouse wheel is scrolling up and down through the
Expand Down Expand Up @@ -4994,11 +4988,6 @@ void T2DMap::slot_roomSelectionChanged()
update();
}

void T2DMap::paintMap()
{
// TODO: reimpliment this!
}

void T2DMap::resizeMultiSelectionWidget()
{
int newWidth;
Expand Down
2 changes: 0 additions & 2 deletions src/T2DMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ class T2DMap : public QWidget
public:
Q_DISABLE_COPY(T2DMap)
explicit T2DMap(QWidget* parent = nullptr);
void paintMap();
void setMapZoom(qreal zoom);
void init();
void exportAreaImage(int);
void paintEvent(QPaintEvent*) override;
void mousePressEvent(QMouseEvent*) override;
void mouseDoubleClickEvent(QMouseEvent* event) override;
Expand Down
15 changes: 0 additions & 15 deletions src/TLuaInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11906,20 +11906,6 @@ int TLuaInterpreter::pasteWindow(lua_State* L)
return 0;
}

// Documentation: https://wiki.mudlet.org/w/Manual:Lua_Functions#exportAreaImage
int TLuaInterpreter::exportAreaImage(lua_State* L)
{
int areaID;
if (lua_isnumber(L, 1)) {
areaID = lua_tointeger(L, 1);
Host& host = getHostFromLua(L);
if (host.mpMap->mpMapper) {
host.mpMap->mpMapper->mp2dMap->exportAreaImage(areaID);
}
}
return 0;
}

// Documentation: https://wiki.mudlet.org/w/Manual:Lua_Functions#openUrl
int TLuaInterpreter::openUrl(lua_State* L)
{
Expand Down Expand Up @@ -16406,7 +16392,6 @@ void TLuaInterpreter::initLuaGlobals()
lua_register(pGlobalLua, "enableModuleSync", TLuaInterpreter::enableModuleSync);
lua_register(pGlobalLua, "disableModuleSync", TLuaInterpreter::disableModuleSync);
lua_register(pGlobalLua, "getModuleSync", TLuaInterpreter::getModuleSync);
lua_register(pGlobalLua, "exportAreaImage", TLuaInterpreter::exportAreaImage);
lua_register(pGlobalLua, "createMapImageLabel", TLuaInterpreter::createMapImageLabel);
lua_register(pGlobalLua, "setMapZoom", TLuaInterpreter::setMapZoom);
lua_register(pGlobalLua, "uninstallPackage", TLuaInterpreter::uninstallPackage);
Expand Down
1 change: 0 additions & 1 deletion src/TLuaInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ class TLuaInterpreter : public QThread
static int uninstallPackage(lua_State*);
static int setMapZoom(lua_State* L);
static int createMapImageLabel(lua_State*);
static int exportAreaImage(lua_State*);
static int installPackage(lua_State*);
static int installModule(lua_State* L);
static int uninstallModule(lua_State* L);
Expand Down

0 comments on commit d84f0b5

Please sign in to comment.