pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/R2pkg/files pkgtools/R2pkg: remove unused code



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a88dbe1f171
branches:  trunk
changeset: 415866:0a88dbe1f171
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Oct 15 18:44:21 2019 +0000

description:
pkgtools/R2pkg: remove unused code

diffstat:

 pkgtools/R2pkg/files/R2pkg.R |  29 +----------------------------
 1 files changed, 1 insertions(+), 28 deletions(-)

diffs (43 lines):

diff -r 9b299ea3caa6 -r 0a88dbe1f171 pkgtools/R2pkg/files/R2pkg.R
--- a/pkgtools/R2pkg/files/R2pkg.R      Tue Oct 15 18:12:53 2019 +0000
+++ b/pkgtools/R2pkg/files/R2pkg.R      Tue Oct 15 18:44:21 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: R2pkg.R,v 1.7 2019/10/13 19:34:13 rillig Exp $
+# $NetBSD: R2pkg.R,v 1.8 2019/10/15 18:44:21 rillig Exp $
 #
 # Copyright (c) 2014,2015,2016,2017,2018,2019
 #      Brook Milligan.  All rights reserved.
@@ -444,33 +444,6 @@
   MAINTAINER
 }
 
-make.sed.command <- function(key,value)
-{
-  address <- paste0('/^[[:blank:]]*',key,'/')
-  match <- paste0('(',key,'[[:blank:]]*=[[:blank:]]*).*$')
-  replacement <- paste0('\\1',value)
-  command <- paste0(' -e "',address,'s/',match,'/',replacement,'/"')
-  command
-}
-
-sed.categories <- function(categories) make.sed.command('CATEGORIES',categories)
-sed.comment <- function(comment)
-{
-  old.comment <- read.file.as.value('COMMENT')
-  if (weakly.equals(old.comment,comment))
-    comment <- old.comment
-  make.sed.command('COMMENT',comment)
-}
-sed.maintainer <- function(email)
-{
-  make.sed.command('MAINTAINER',maintainer(email))
-}
-sed.license <- function(license)
-{
-  make.sed.command('LICENSE',license)
-}
-sed.r_pkgver <- function(r_pkgver) make.sed.command('R_PKGVER',r_pkgver)
-
 find.Rcpp <- function(imps, deps) grepl('Rcpp', paste(imps, deps))
 
 buildlink3.mk <- function(imps,deps)



Home | Main Index | Thread Index | Old Index