[Libreoffice-commits] core.git: store/workben
store/workben/makefile.mk | 99 --- store/workben/t_base.cxx | 346 --- store/workben/t_file.cxx | 211 --- store/workben/t_leak.cxx | 31 - store/workben/t_page.cxx | 1355 -- store/workben/t_store.cxx | 543 -- 6 files changed, 2585 deletions(-) New commits: commit 4ecbc7e63cd0b84ad9310b5206c41ce750f46a57 Author: Stephan Bergmann sberg...@redhat.com Date: Fri Nov 21 14:51:45 2014 +0100 Remvoe store/workben/ ...probably not worth dragging that unused code around any more Change-Id: I4f22a704af862d8a1fe1f2202609f355ccee7c9c diff --git a/store/workben/makefile.mk b/store/workben/makefile.mk deleted file mode 100644 index 8805c8e..000 --- a/store/workben/makefile.mk +++ /dev/null @@ -1,99 +0,0 @@ -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the License); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ=.. - -PRJNAME=store -TARGET=workben - -LIBTARGET=NO -TARGETTYPE=CUI -NO_DEFAULT_STL=TRUE - -# --- Settings --- - -.INCLUDE : settings.mk - -.IF $(STORELIB) == -.IF $(OS) != WNT -STORELIB= -lstore -.ELSE # unx -.IF $(OS)$(COM)==WNTGCC -STORELIB= -lstore$(UDK_MAJOR) -.ELSE -STORELIB= $(LB)$/istore.lib -.ENDIF -.ENDIF # unx -.ENDIF # storelib - -.IF $(OS) != WNT -STOREDBGLIB= $(LB)$/libstoredbg.a -.ELSE # unx -.IF $(OS)$(COM)==WNTGCC -STOREDBGLIB= $(LB)$/libstoredbg.a -.ELSE -STOREDBGLIB= $(LB)$/storedbg.lib -.ENDIF -.ENDIF # unx - -CFLAGS+= -I..$/source - -# --- Files --- - -OBJFILES= \ -$(OBJ)$/t_leak.obj \ -$(OBJ)$/t_file.obj \ -$(OBJ)$/t_page.obj \ -$(OBJ)$/t_base.obj \ -$(OBJ)$/t_store.obj - -APP1TARGET=t_file -APP1OBJS= $(OBJ)$/t_file.obj -APP1STDLIBS= $(STOREDBGLIB) -APP1STDLIBS+= $(SALLIB) -APP1DEPN= $(STOREDBGLIB) -APP1RPATH= UREBIN - -APP2TARGET=t_page -APP2OBJS= $(OBJ)$/t_page.obj -APP2STDLIBS= $(STOREDBGLIB) -APP2STDLIBS+= $(SALLIB) -APP2DEPN= $(STOREDBGLIB) - -APP3TARGET=t_base -APP3OBJS= $(OBJ)$/t_base.obj -APP3STDLIBS= $(STOREDBGLIB) -APP3STDLIBS+= $(SALLIB) -APP3DEPN= $(STOREDBGLIB) -APP3RPATH= UREBIN - -APP4TARGET=t_store -APP4OBJS= $(OBJ)$/t_store.obj -APP4STDLIBS= $(STORELIB) -APP4STDLIBS+= $(SALLIB) -APP4DEPN= $(SLB)$/store.lib -APP4RPATH= UREBIN - - APP5TARGET= t_leak - APP5OBJS= $(OBJ)$/t_leak.obj - APP5STDLIBS+= $(SALLIB) - -# --- Targets --- - -.INCLUDE : target.mk - diff --git a/store/workben/t_base.cxx b/store/workben/t_base.cxx deleted file mode 100644 index badefe8..000 --- a/store/workben/t_base.cxx +++ /dev/null @@ -1,346 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the License); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include string.h -#include sal/types.h -#include osl/diagnose.h -#include osl/thread.h -#include rtl/ustring.hxx - -#include object.hxx -#include storbase.hxx -#include storbios.hxx -#include lockbyte.hxx - -using namespace store; - -#define TEST_PAGESIZE 1024 - -/* - * - * OTestObject. - * - *==*/ -class OTestObject : public store::OStoreObject -{ -public: -OTestObject (void); - -virtual sal_Bool SAL_CALL isKindOf (sal_uInt32 nTypeId); - -protected: -virtual ~OTestObject (void);
[Libreoffice-commits] core.git: store/workben
store/workben/t_store.cxx | 12 1 file changed, 12 deletions(-) New commits: commit e0791969c8913f7719f59cf57983f5388a311cc6 Author: Thomas Arnhold tho...@arnhold.org Date: Thu Mar 27 17:48:36 2014 +0100 remove PROFILE checks never defined, follow-up of 512de6e75d34d2144392d1e78c25446f2d0b3a35 diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx index 160d3d8..25ce3f7 100644 --- a/store/workben/t_store.cxx +++ b/store/workben/t_store.cxx @@ -334,9 +334,7 @@ int SAL_CALL main (int argc, char **argv) pBuffer[_DEMOSTOR_BUFSIZ - 1] = '\0'; // Load/Save. -#ifndef PROFILE OTime aStartTime (OTime::getSystemTime()); -#endif /* PROFILE */ for (int i = 0; i _DEMOSTOR_LOOPS; i++) { @@ -401,7 +399,6 @@ int SAL_CALL main (int argc, char **argv) aStream.close(); -#ifndef PROFILE if (((i + 1) % (_DEMOSTOR_LOOPS/10)) == 0) { OTime aDelta (OTime::getSystemTime() - aStartTime); @@ -412,17 +409,14 @@ int SAL_CALL main (int argc, char **argv) printf (%d: %12.4g[usec]\n, (i+1), (double)(nDelta)/(double)(i+1)); } -#endif /* PROFILE */ } -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aStartTime); sal_uInt32 nDelta = aDelta.Seconds * 100; nDelta += (aDelta.Nanosec / 1000); printf (Total(rd,wr): %d[usec]\n, (unsigned int)(nDelta)); -#endif /* PROFILE */ } // Link/Rename. @@ -478,9 +472,7 @@ int SAL_CALL main (int argc, char **argv) // Directory iteration. if (nOptions OPTION_ITER) { -#ifndef PROFILE OTime aStartTime (OTime::getSystemTime()); -#endif /* PROFILE */ OUString aEmpty; // Root directory. @@ -519,14 +511,12 @@ int SAL_CALL main (int argc, char **argv) printf (Error: can't open directory: \/\\n); } -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aStartTime); sal_uInt32 nDelta = aDelta.Seconds * 100; nDelta += (aDelta.Nanosec / 1000); printf (Total(iter): %d[usec]\n, (unsigned int)(nDelta)); -#endif /* PROFILE */ } if (nOptions OPTION_PAUSE) @@ -544,14 +534,12 @@ int SAL_CALL main (int argc, char **argv) // Done. aFile.close(); -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aMainStartTime); sal_uInt32 nDelta = aDelta.Seconds * 100; nDelta += (aDelta.Nanosec / 1000); printf (Total: %d[usec]\n, (unsigned int)(nDelta)); -#endif /* PROFILE */ return 0; } ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits