From c38e326242c9823df8fe6c415775ee3eebd58a61 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 8 Sep 2010 10:18:21 +0200 Subject: [PATCH] Revert "tag.lua: check name argument to add() is valid" This reverts commit 6cb61939c4857cedcdc78873b713f3c21a92f056. --- lib/awful/tag.lua.in | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 9b8c1e5c7..58d8fbcdd 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -56,14 +56,8 @@ end --- Add a tag. -- @param name The tag name, a string -- @param props The tags properties, a table --- @return The created tag or nil if not created. --- If the name is a valid string then the tag will be created and each key,value --- pair in 'props' table is iterated and applied to the tag. If the 'name' --- argument is nil or its string length is zero then the function returns nil. +-- @return The created tag function add(name, props) - -- abort if the name is not provided - if not name or #(tostring(name)) == 0 then return end - local properties = props or {} local newtag = capi.tag{name = name} newtag.screen = properties.screen or capi.mouse.screen