From 5c46ca305cbd14636bbb4d8f38066040fea720e5 Mon Sep 17 00:00:00 2001 From: Lorenzo Pivetta <lorenzo.pivetta@elettra.eu> Date: Mon, 3 Aug 2020 13:35:42 +0200 Subject: [PATCH] Remove unused RCS/CVS references --- src/ClassFactory.cpp | 16 ----- src/Vg.cpp | 28 -------- src/Vg.h | 24 ------- src/VgClass.cpp | 153 ----------------------------------------- src/VgClass.h | 21 ------ src/VgStateMachine.cpp | 22 ------ src/main.cpp | 16 ----- 7 files changed, 280 deletions(-) diff --git a/src/ClassFactory.cpp b/src/ClassFactory.cpp index 5347ab7..5c5dfb8 100644 --- a/src/ClassFactory.cpp +++ b/src/ClassFactory.cpp @@ -1,5 +1,4 @@ /*----- PROTECTED REGION ID(Vg::ClassFactory.cpp) ENABLED START -----*/ -static const char *RcsId = "$Id: ClassFactory.cpp,v 1.2 2012-07-18 09:59:24 mdm Exp $"; //============================================================================= // // file : ClassFactory.cpp @@ -11,21 +10,6 @@ static const char *RcsId = "$Id: ClassFactory.cpp,v 1.2 2012-07-18 09:59:24 mdm // // project : Vg. // -// $Author: mdm $ -// -// $Revision: 1.2 $ -// $Date: 2012-07-18 09:59:24 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/ClassFactory.cpp,v $ -// $Log: ClassFactory.cpp,v $ -// Revision 1.2 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) diff --git a/src/Vg.cpp b/src/Vg.cpp index 4e06e26..882dbfa 100644 --- a/src/Vg.cpp +++ b/src/Vg.cpp @@ -1,5 +1,4 @@ /*----- PROTECTED REGION ID(Vg.cpp) ENABLED START -----*/ -static const char *RcsId = "$Id: Vg.cpp,v 1.10 2016-10-18 16:06:08 claudio Exp $"; //============================================================================= // // file : Vg.cpp @@ -12,33 +11,6 @@ static const char *RcsId = "$Id: Vg.cpp,v 1.10 2016-10-18 16:06:08 claudio Exp $ // // project : Vg. // -// $Author: claudio $ -// -// $Revision: 1.10 $ -// $Date: 2016-10-18 16:06:08 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/Vg.cpp,v $ -// $Log: Vg.cpp,v $ -// Revision 1.10 2016-10-18 16:06:08 claudio -// tango9 -// -// Revision 1.9 2013-06-17 10:30:32 lorenzo -// Added DeviceState attribute -// -// Revision 1.8 2013-06-05 15:41:02 lorenzo -// Tango 8.0.5 -// -// Revision 1.7 2012-09-10 08:07:44 mdm -// Unregister name fix -// -// Revision 1.6 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) diff --git a/src/Vg.h b/src/Vg.h index 67a5e44..3794974 100644 --- a/src/Vg.h +++ b/src/Vg.h @@ -7,30 +7,6 @@ // // project : Vg. // -// $Author: claudio $ -// -// $Revision: 1.8 $ -// $Date: 2016-10-18 16:06:08 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/Vg.h,v $ -// $Log: Vg.h,v $ -// Revision 1.8 2016-10-18 16:06:08 claudio -// tango9 -// -// Revision 1.7 2013-06-17 10:30:32 lorenzo -// Added DeviceState attribute -// -// Revision 1.6 2013-06-05 15:41:02 lorenzo -// Tango 8.0.5 -// -// Revision 1.5 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) diff --git a/src/VgClass.cpp b/src/VgClass.cpp index 6453527..6d82fbe 100644 --- a/src/VgClass.cpp +++ b/src/VgClass.cpp @@ -1,9 +1,4 @@ /*----- PROTECTED REGION ID(VgClass.cpp) ENABLED START -----*/ -static const char *RcsId = "$Id: VgClass.cpp,v 1.6 2013-06-17 10:30:33 lorenzo Exp $"; -static const char *TagName = "$Name: $"; -static const char *CvsPath = "$Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/VgClass.cpp,v $"; -static const char *SvnPath = "$HeadURL: $"; -static const char *HttpServer = "http://www.esrf.eu/computing/cs/tango/tango_doc/ds_doc/"; //============================================================================= // // file : VgClass.cpp @@ -15,27 +10,6 @@ static const char *HttpServer = "http://www.esrf.eu/computing/cs/tango/tango_doc // // project : Vg. // -// $Author: lorenzo $ -// -// $Revision: 1.6 $ -// $Date: 2013-06-17 10:30:33 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/VgClass.cpp,v $ -// $Log: VgClass.cpp,v $ -// Revision 1.6 2013-06-17 10:30:33 lorenzo -// Added DeviceState attribute -// -// Revision 1.5 2013-06-05 15:41:02 lorenzo -// Tango 8.0.5 -// -// Revision 1.4 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) @@ -360,133 +334,6 @@ void VgClass::set_default_property() void VgClass::write_class_property() { // First time, check if database used - if (Tango::Util::_UseDb == false) - return; - - Tango::DbData data; - string classname = get_name(); - string header; - string::size_type start, end; - - // Put title - Tango::DbDatum title("ProjectTitle"); - string str_title("Vg"); - title << str_title; - data.push_back(title); - - // Put Description - Tango::DbDatum description("Description"); - vector<string> str_desc; - str_desc.push_back(""); - description << str_desc; - data.push_back(description); - - // put cvs or svn location - string filename("Vg"); - filename += "Class.cpp"; - - // check for cvs information - string src_path(CvsPath); - start = src_path.find("/"); - if (start!=string::npos) - { - end = src_path.find(filename); - if (end>start) - { - string strloc = src_path.substr(start, end-start); - // Check if specific repository - start = strloc.find("/cvsroot/"); - if (start!=string::npos && start>0) - { - string repository = strloc.substr(0, start); - if (repository.find("/segfs/")!=string::npos) - strloc = "ESRF:" + strloc.substr(start, strloc.length()-start); - } - Tango::DbDatum cvs_loc("cvs_location"); - cvs_loc << strloc; - data.push_back(cvs_loc); - } - } - // check for svn information - else - { - string src_path(SvnPath); - start = src_path.find("://"); - if (start!=string::npos) - { - end = src_path.find(filename); - if (end>start) - { - header = "$HeadURL: "; - start = header.length(); - string strloc = src_path.substr(start, (end-start)); - - Tango::DbDatum svn_loc("svn_location"); - svn_loc << strloc; - data.push_back(svn_loc); - } - } - } - - // Get CVS or SVN revision tag - - // CVS tag - string tagname(TagName); - header = "$Name: "; - start = header.length(); - string endstr(" $"); - - end = tagname.find(endstr); - if (end!=string::npos && end>start) - { - string strtag = tagname.substr(start, end-start); - Tango::DbDatum cvs_tag("cvs_tag"); - cvs_tag << strtag; - data.push_back(cvs_tag); - } - - // SVN tag - string svnpath(SvnPath); - header = "$HeadURL: "; - start = header.length(); - - end = svnpath.find(endstr); - if (end!=string::npos && end>start) - { - string strloc = svnpath.substr(start, end-start); - - string tagstr ("/tags/"); - start = strloc.find(tagstr); - if ( start!=string::npos ) - { - start = start + tagstr.length(); - end = strloc.find(filename); - string strtag = strloc.substr(start, end-start-1); - - Tango::DbDatum svn_tag("svn_tag"); - svn_tag << strtag; - data.push_back(svn_tag); - } - } - - // Get URL location - string httpServ(HttpServer); - if (httpServ.length()>0) - { - Tango::DbDatum db_doc_url("doc_url"); - db_doc_url << httpServ; - data.push_back(db_doc_url); - } - - // Put inheritance - Tango::DbDatum inher_datum("InheritedFrom"); - vector<string> inheritance; - inheritance.push_back("Device_Impl"); - inher_datum << inheritance; - data.push_back(inher_datum); - - // Call database and and values - get_db_class()->put_property(data); } diff --git a/src/VgClass.h b/src/VgClass.h index b8b4b9d..bd7d348 100644 --- a/src/VgClass.h +++ b/src/VgClass.h @@ -11,27 +11,6 @@ // // project : Vg. // -// $Author: lorenzo $ -// -// $Revision: 1.6 $ -// $Date: 2013-06-17 10:30:33 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/VgClass.h,v $ -// $Log: VgClass.h,v $ -// Revision 1.6 2013-06-17 10:30:33 lorenzo -// Added DeviceState attribute -// -// Revision 1.5 2013-06-05 15:41:02 lorenzo -// Tango 8.0.5 -// -// Revision 1.4 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) diff --git a/src/VgStateMachine.cpp b/src/VgStateMachine.cpp index f98c896..0f3140c 100644 --- a/src/VgStateMachine.cpp +++ b/src/VgStateMachine.cpp @@ -1,5 +1,4 @@ /*----- PROTECTED REGION ID(VgStateMachine.cpp) ENABLED START -----*/ -static const char *RcsId = "$Id: VgStateMachine.cpp,v 1.6 2013-06-17 10:30:33 lorenzo Exp $"; //============================================================================= // // file : VgStateMachine.cpp @@ -9,27 +8,6 @@ static const char *RcsId = "$Id: VgStateMachine.cpp,v 1.6 2013-06-17 10:30:33 lo // // project : Vg. // -// $Author: lorenzo $ -// -// $Revision: 1.6 $ -// $Date: 2013-06-17 10:30:33 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/VgStateMachine.cpp,v $ -// $Log: VgStateMachine.cpp,v $ -// Revision 1.6 2013-06-17 10:30:33 lorenzo -// Added DeviceState attribute -// -// Revision 1.5 2013-06-05 15:41:02 lorenzo -// Tango 8.0.5 -// -// Revision 1.4 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) diff --git a/src/main.cpp b/src/main.cpp index 4456eae..ebcc6d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,4 @@ /*PROTECTED REGION ID(Vg::main.cpp) ENABLED START*/ -static const char *RcsId = "$Id: main.cpp,v 1.2 2012-07-18 09:59:24 mdm Exp $"; //============================================================================= // // file : Vg.cpp @@ -11,21 +10,6 @@ static const char *RcsId = "$Id: main.cpp,v 1.2 2012-07-18 09:59:24 mdm Exp $"; // // project : Vg. // -// $Author: mdm $ -// -// $Revision: 1.2 $ -// $Date: 2012-07-18 09:59:24 $ -// -// SVN only: -// $HeadURL: $ -// -// CVS only: -// $Source: /home/cvsadm/cvsroot/fermi/servers/vg/src/main.cpp,v $ -// $Log: main.cpp,v $ -// Revision 1.2 2012-07-18 09:59:24 mdm -// New version, before test -// -// //============================================================================= // This file is generated by POGO // (Program Obviously used to Generate tango Object) -- GitLab