allow new drags to be created with no associated mime types

This commit is contained in:
Mike Blumenkrantz 2015-08-04 18:47:59 -04:00
parent b011c4a045
commit b33d8bdf10
1 changed files with 0 additions and 2 deletions

View File

@ -273,8 +273,6 @@ e_drag_new(int x, int y,
E_Drag *drag;
unsigned int i;
/* No need to create a drag object without type */
if ((!types) || (!num_types)) return NULL;
drag = e_object_alloc(sizeof(E_Drag) + num_types * sizeof(char *),
E_DRAG_TYPE, E_OBJECT_CLEANUP_FUNC(_e_drag_free));
if (!drag) return NULL;