Revision: 5027 http://geany.svn.sourceforge.net/geany/?rev=5027&view=rev Author: ntrel Date: 2010-06-16 15:26:04 +0000 (Wed, 16 Jun 2010)
Log Message: ----------- Remove template strings (not sure why gcc doesn't warn about unused static data?).
Modified Paths: -------------- trunk/src/templates.c
Modified: trunk/src/templates.c =================================================================== --- trunk/src/templates.c 2010-06-16 15:22:56 UTC (rev 5026) +++ trunk/src/templates.c 2010-06-16 15:26:04 UTC (rev 5027) @@ -46,75 +46,7 @@
static GtkWidget *new_with_template_menu = NULL; /* submenu used for both file menu and toolbar */
- -/* TODO: implement custom insertion templates, put these into files in data/templates */ - -/* default templates, only for initial tempate file creation on first start of Geany */ -static const gchar templates_gpl_notice[] = "\ -This program is free software; you can redistribute it and/or modify\n\ -it under the terms of the GNU General Public License as published by\n\ -the Free Software Foundation; either version 2 of the License, or\n\ -(at your option) any later version.\n\ -\n\ -This program is distributed in the hope that it will be useful,\n\ -but WITHOUT ANY WARRANTY; without even the implied warranty of\n\ -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\ -GNU General Public License for more details.\n\ -\n\ -You should have received a copy of the GNU General Public License\n\ -along with this program; if not, write to the Free Software\n\ -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,\n\ -MA 02110-1301, USA.\n\ -"; - -static const gchar templates_bsd_notice[] = "\ -Redistribution and use in source and binary forms, with or without\n\ -modification, are permitted provided that the following conditions are\n\ -met:\n\ -\n\ -* Redistributions of source code must retain the above copyright\n\ - notice, this list of conditions and the following disclaimer.\n\ -* Redistributions in binary form must reproduce the above\n\ - copyright notice, this list of conditions and the following disclaimer\n\ - in the documentation and/or other materials provided with the\n\ - distribution.\n\ -* Neither the name of the {company} nor the names of its\n\ - contributors may be used to endorse or promote products derived from\n\ - this software without specific prior written permission.\n\ -\n\ -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\ -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\ -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n\ -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n\ -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n\ -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n\ -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n\ -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n\ -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\ -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\ -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\ -"; - -static const gchar templates_function_description[] = "\ -\n\ -name: {functionname}\n\ -@param\n\ -@return\n\ -"; - -static const gchar templates_fileheader[] = "\ -{filename}\n\ -\n\ -Copyright {year} {developer} <{mail}>\n\ -\n\ -{gpl}\ -"; - -static const gchar templates_changelog[] = "\ -{date} {developer} <{mail}>\n\ -\n\ - * \n\n\n"; - +/* TODO: implement custom insertion templates instead? */ static gchar *templates[GEANY_MAX_TEMPLATES];
/* We should probably remove filetype templates support soon - users can use custom
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.