From c758a9f2dd54f089852d9f5e37e6fda3f3ade5d9 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Fri, 16 Feb 2001 22:09:06 +0000 Subject: [PATCH] Remove BackStack.h git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1527 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BackStack.h | 64 ------------------------------------------------- src/Makefile.am | 1 - 2 files changed, 65 deletions(-) delete mode 100644 src/BackStack.h diff --git a/src/BackStack.h b/src/BackStack.h deleted file mode 100644 index 4974ce22d5..0000000000 --- a/src/BackStack.h +++ /dev/null @@ -1,64 +0,0 @@ -// -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1997-2000 The LyX Team. - * - * ====================================================== */ - -#ifndef BACK_STACK_H -#define BACK_STACK_H - -#include - -#include "LString.h" - -/** Utility to get back from a reference or from a child document. - @author Alejandro Aguilar Sierra - @version 970806 - */ -class BackStack { -private: - /// - struct BackStackItem { - /// - BackStackItem() - : x(0), y(0) {} - /// - BackStackItem(string const & f, int xx, int yy) - : fname(f), x(xx), y(yy) {} - /// Filename - string fname; - /// Cursor x-position - int x; - /// Cursor y-position - int y; - }; -public: - /// - void push(string f, int x, int y) { - BackStackItem bit(f, x, y); - stakk.push(bit); - } - /// - string const pop(int * x, int * y) { - BackStackItem bit = stakk.top(); - *x = bit.x; - *y = bit.y; - stakk.pop(); - return bit.fname; - } - /** - @return returns #true# if the stack is empty, #false# otherwise. - */ - bool empty() const { - return stakk.empty(); - } -private: - /// - std::stack stakk; -}; - -#endif diff --git a/src/Makefile.am b/src/Makefile.am index ed4221c6a5..1a3929676e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,7 +22,6 @@ BOOST_INCLUDES = -I$(top_srcdir)/boost INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES) @FRONTEND_INCLUDES@ localedir = $(datadir)/locale lyx_SOURCES = \ - BackStack.h \ BufferView.C \ BufferView.h \ BufferView2.C \