Code Cleanup
- Removed obsolete Keymap object.
This commit is contained in:
@@ -5,19 +5,19 @@ set (task_SRCS API.cpp API.h Att.cpp Att.h Cmd.cpp Cmd.h Color.cpp Color.h
|
|||||||
Config.cpp Config.h Context.cpp Context.h Date.cpp Date.h
|
Config.cpp Config.h Context.cpp Context.h Date.cpp Date.h
|
||||||
Directory.cpp Directory.h DOM.cpp DOM.h Duration.cpp Duration.h
|
Directory.cpp Directory.h DOM.cpp DOM.h Duration.cpp Duration.h
|
||||||
File.cpp File.h Filter.cpp Filter.h feedback.cpp Grid.cpp Grid.h
|
File.cpp File.h Filter.cpp Filter.h feedback.cpp Grid.cpp Grid.h
|
||||||
Hooks.cpp Hooks.h JSON.cpp JSON.h Keymap.cpp Keymap.h
|
Hooks.cpp Hooks.h JSON.cpp JSON.h Location.cpp Location.h
|
||||||
Location.cpp Location.h Nibbler.cpp Nibbler.h Path.cpp Path.h
|
Nibbler.cpp Nibbler.h Path.cpp Path.h Permission.cpp Permission.h
|
||||||
Permission.cpp Permission.h Record.cpp Record.h Rectangle.cpp
|
Record.cpp Record.h Rectangle.cpp Rectangle.h Sequence.cpp
|
||||||
Rectangle.h Sequence.cpp Sequence.h Subst.cpp Subst.h TDB.cpp
|
Sequence.h Subst.cpp Subst.h TDB.cpp TDB.h Table.cpp TDB2.cpp
|
||||||
TDB.h Table.cpp TDB2.cpp TDB2.h Table.h Task.cpp Task.h
|
TDB2.h Table.h Task.cpp Task.h Taskmod.cpp Taskmod.h Thread.cpp
|
||||||
Taskmod.cpp Taskmod.h Thread.cpp Thread.h Timer.cpp Timer.h
|
Thread.h Timer.cpp Timer.h Transport.cpp Transport.h
|
||||||
Transport.cpp Transport.h TransportSSH.cpp TransportSSH.h
|
TransportSSH.cpp TransportSSH.h TransportRSYNC.cpp
|
||||||
TransportRSYNC.cpp TransportRSYNC.h TransportCurl.cpp
|
TransportRSYNC.h TransportCurl.cpp TransportCurl.h Tree.cpp
|
||||||
TransportCurl.h Tree.cpp Tree.h burndown.cpp command.cpp
|
Tree.h burndown.cpp command.cpp custom.cpp dependency.cpp
|
||||||
custom.cpp dependency.cpp diag.cpp edit.cpp export.cpp
|
diag.cpp edit.cpp export.cpp history.cpp i18n.h import.cpp
|
||||||
history.cpp i18n.h import.cpp interactive.cpp recur.cpp
|
interactive.cpp recur.cpp report.cpp rules.cpp rx.cpp rx.h
|
||||||
report.cpp rules.cpp rx.cpp rx.h text.cpp text.h utf8.cpp utf8.h
|
text.cpp text.h utf8.cpp utf8.h util.cpp util.h Uri.cpp Uri.h
|
||||||
util.cpp util.h Uri.cpp Uri.h Variant.cpp Variant.h)
|
Variant.cpp Variant.h)
|
||||||
|
|
||||||
add_library (task STATIC ${task_SRCS})
|
add_library (task STATIC ${task_SRCS})
|
||||||
add_executable (task_executable main.cpp)
|
add_executable (task_executable main.cpp)
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
Context::Context ()
|
Context::Context ()
|
||||||
: config ()
|
: config ()
|
||||||
, filter ()
|
, filter ()
|
||||||
, keymap ()
|
|
||||||
, sequence ()
|
, sequence ()
|
||||||
, subst ()
|
, subst ()
|
||||||
, task ()
|
, task ()
|
||||||
@@ -825,7 +824,6 @@ void Context::clear ()
|
|||||||
{
|
{
|
||||||
// Config config;
|
// Config config;
|
||||||
filter.clear ();
|
filter.clear ();
|
||||||
// Keymap keymap;
|
|
||||||
sequence.clear ();
|
sequence.clear ();
|
||||||
subst.clear ();
|
subst.clear ();
|
||||||
// task.clear ();
|
// task.clear ();
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
#define INCLUDED_CONTEXT
|
#define INCLUDED_CONTEXT
|
||||||
|
|
||||||
#include "Filter.h"
|
#include "Filter.h"
|
||||||
#include "Keymap.h"
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Sequence.h"
|
#include "Sequence.h"
|
||||||
#include "Subst.h"
|
#include "Subst.h"
|
||||||
@@ -80,7 +79,6 @@ private:
|
|||||||
public:
|
public:
|
||||||
Config config;
|
Config config;
|
||||||
Filter filter;
|
Filter filter;
|
||||||
Keymap keymap;
|
|
||||||
Sequence sequence;
|
Sequence sequence;
|
||||||
Subst subst;
|
Subst subst;
|
||||||
Task task;
|
Task task;
|
||||||
|
|||||||
@@ -1,66 +0,0 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// taskwarrior - a command line task list manager.
|
|
||||||
//
|
|
||||||
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
|
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// This program is free software; you can redistribute it and/or modify it under
|
|
||||||
// the terms of the GNU General Public License as published by the Free Software
|
|
||||||
// Foundation; either version 2 of the License, or (at your option) any later
|
|
||||||
// version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
// details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License along with
|
|
||||||
// this program; if not, write to the
|
|
||||||
//
|
|
||||||
// Free Software Foundation, Inc.,
|
|
||||||
// 51 Franklin Street, Fifth Floor,
|
|
||||||
// Boston, MA
|
|
||||||
// 02110-1301
|
|
||||||
// USA
|
|
||||||
//
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "Keymap.h"
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
Keymap::Keymap ()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
Keymap::Keymap (const Keymap& other)
|
|
||||||
{
|
|
||||||
throw std::string ("unimplemented Keymap::Keymap");
|
|
||||||
// mOne = other.mOne;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
Keymap& Keymap::operator= (const Keymap& other)
|
|
||||||
{
|
|
||||||
throw std::string ("unimplemented Keymap::operator=");
|
|
||||||
if (this != &other)
|
|
||||||
{
|
|
||||||
// mOne = other.mOne;
|
|
||||||
}
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
Keymap::~Keymap ()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void Keymap::load (const std::string& file)
|
|
||||||
{
|
|
||||||
throw std::string ("unimplemented Keymap::load");
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
51
src/Keymap.h
51
src/Keymap.h
@@ -1,51 +0,0 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// taskwarrior - a command line task list manager.
|
|
||||||
//
|
|
||||||
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
|
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// This program is free software; you can redistribute it and/or modify it under
|
|
||||||
// the terms of the GNU General Public License as published by the Free Software
|
|
||||||
// Foundation; either version 2 of the License, or (at your option) any later
|
|
||||||
// version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
// details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License along with
|
|
||||||
// this program; if not, write to the
|
|
||||||
//
|
|
||||||
// Free Software Foundation, Inc.,
|
|
||||||
// 51 Franklin Street, Fifth Floor,
|
|
||||||
// Boston, MA
|
|
||||||
// 02110-1301
|
|
||||||
// USA
|
|
||||||
//
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
#ifndef INCLUDED_KEYMAP
|
|
||||||
#define INCLUDED_KEYMAP
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class Keymap
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
Keymap (); // Default constructor
|
|
||||||
Keymap (const Keymap&); // Copy constructor
|
|
||||||
Keymap& operator= (const Keymap&); // Assignment operator
|
|
||||||
~Keymap (); // Destructor
|
|
||||||
|
|
||||||
void load (const std::string&); // Load the map file
|
|
||||||
/*
|
|
||||||
real (); // Convert soft to real
|
|
||||||
soft (); // Convert real to soft
|
|
||||||
*/
|
|
||||||
|
|
||||||
private:
|
|
||||||
// TODO Structure for mapping strings to keys.
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
Reference in New Issue
Block a user