Patchwork [v5,4/8] kernel.bblass: remove get_kernelmajorversion

login
register
mail settings
Submitter Anders Darander
Date July 1, 2011, 1:08 p.m.
Message ID <017f8b8ce1d13b71f3b13ae37f13b0801ce71924.1309525642.git.anders@chargestorm.se>
Download mbox | patch
Permalink /patch/6837/
State Accepted
Headers show

Comments

Anders Darander - July 1, 2011, 1:08 p.m.
It is now unused.

Signed-off-by: Anders Darander <anders@chargestorm.se>
---
 meta/classes/linux-kernel-base.bbclass |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

Patch

diff --git a/meta/classes/linux-kernel-base.bbclass b/meta/classes/linux-kernel-base.bbclass
index 510951a..4f2b0a4 100644
--- a/meta/classes/linux-kernel-base.bbclass
+++ b/meta/classes/linux-kernel-base.bbclass
@@ -24,14 +24,6 @@  def get_kernelversion(p):
             return m.group(1)
     return None
 
-def get_kernelmajorversion(p):
-	import re
-	r = re.compile("([0-9]+\.[0-9]+).*")
-	m = r.match(p);
-	if m:
-		return m.group(1)
-	return None
-
 def linux_module_packages(s, d):
 	suffix = ""
 	return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))