mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Merging Record and Task objects, step 5. Done.
This commit is contained in:
parent
6f980490bd
commit
85e77c1958
6 changed files with 3 additions and 87 deletions
|
@ -23,7 +23,6 @@ set (task_SRCS A3.cpp A3.h
|
||||||
Nibbler.cpp Nibbler.h
|
Nibbler.cpp Nibbler.h
|
||||||
Path.cpp Path.h
|
Path.cpp Path.h
|
||||||
Permission.cpp Permission.h
|
Permission.cpp Permission.h
|
||||||
Record.cpp Record.h
|
|
||||||
RX.cpp RX.h
|
RX.cpp RX.h
|
||||||
TDB.cpp TDB.h
|
TDB.cpp TDB.h
|
||||||
TDB2.cpp TDB2.h
|
TDB2.cpp TDB2.h
|
||||||
|
|
|
@ -1,41 +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
|
|
||||||
//
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#define L10N // Localization complete.
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <util.h>
|
|
||||||
#include <Nibbler.h>
|
|
||||||
#include <Context.h>
|
|
||||||
#include <text.h>
|
|
||||||
#include <i18n.h>
|
|
||||||
#include <Record.h>
|
|
||||||
|
|
||||||
extern Context context;
|
|
||||||
|
|
42
src/Record.h
42
src/Record.h
|
@ -1,42 +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_RECORD
|
|
||||||
#define INCLUDED_RECORD
|
|
||||||
#define L10N // Localization complete.
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <map>
|
|
||||||
#include <string>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <Att.h>
|
|
||||||
|
|
||||||
class Record : public std::map <std::string, Att>
|
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
2
test/.gitignore
vendored
2
test/.gitignore
vendored
|
@ -20,13 +20,13 @@ lisp.t
|
||||||
list.t
|
list.t
|
||||||
nibbler.t
|
nibbler.t
|
||||||
path.t
|
path.t
|
||||||
record.t
|
|
||||||
rx.t
|
rx.t
|
||||||
sensor.t
|
sensor.t
|
||||||
seq.t
|
seq.t
|
||||||
subst.t
|
subst.t
|
||||||
t.benchmark.t
|
t.benchmark.t
|
||||||
t.t
|
t.t
|
||||||
|
t2.t
|
||||||
taskmod.t
|
taskmod.t
|
||||||
tdb.t
|
tdb.t
|
||||||
tdb2.t
|
tdb2.t
|
||||||
|
|
|
@ -7,8 +7,8 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (test_SRCS att.t autocomplete.t color.t config.t date.t directory.t dom.t
|
set (test_SRCS att.t autocomplete.t color.t config.t date.t directory.t dom.t
|
||||||
duration.t file.t i18n.t json.t list.t nibbler.t path.t record.t
|
duration.t file.t i18n.t json.t list.t nibbler.t path.t rx.t
|
||||||
rx.t t.benchmark.t t.t taskmod.t tdb.t tdb2.t text.t uri.t util.t
|
t.benchmark.t t.t t2.t taskmod.t tdb.t tdb2.t text.t uri.t util.t
|
||||||
view.t json_test)
|
view.t json_test)
|
||||||
|
|
||||||
add_custom_target (test ./run_all DEPENDS ${test_SRCS}
|
add_custom_target (test ./run_all DEPENDS ${test_SRCS}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue